project ("SimpleCanvasTest")

set(SKIA_DIR "${REFERENCE_DIR}/skia" CACHE PATH "Skia 根目录")
set(VULKAN_DIR "E:/VulkanSDK/1.4.321.1" CACHE PATH "Vulkan SDK 路径")

add_executable (${PROJECT_NAME} "main.cpp" "Callback.cpp" "Callback.h")

target_include_directories(${PROJECT_NAME} PRIVATE
"${SKIA_DIR}"
"${VULKAN_DIR}/Include"
"${CMAKE_SOURCE_DIR}/yzrutil/main"
"${CMAKE_SOURCE_DIR}/SimpleDSP/main"
"${CMAKE_SOURCE_DIR}/SimpleCanvas/main"
)

if(CMAKE_BUILD_TYPE STREQUAL "Debug")
    target_link_directories(${PROJECT_NAME} PRIVATE "${SKIA_DIR}/out/Debug")
else()
    target_link_directories(${PROJECT_NAME} PRIVATE "${SKIA_DIR}/out/Release")
endif()

target_link_directories(${PROJECT_NAME} PRIVATE "${VULKAN_DIR}/Lib")

set_target_properties(${PROJECT_NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")

target_link_libraries(${PROJECT_NAME} PRIVATE VMProtect skia vulkan-1 yzrutil SimpleDSP SimpleCanvas)
